QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webengine webenginewidgets

CONFIG += c++11
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS NOMINMAX

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
RC_ICONS = icon/icon.ico
SOURCES += \
    src/main.cpp \
    src/desk.cpp\
    src/dockindock.cpp\
    src/dockindockmanager.cpp\
    src/pack_tool.cpp \
    src/perspectiveactions.cpp\
    src/perspectives.cpp\
    src/plugin_manager.cpp\
    src/plugin_market.cpp \
    src/save_layout.cpp \
    src/downloadmanagerwidget.cpp\
    src/downloadwidget.cpp

HEADERS += \
    inc/desk.h\
    inc/dockindock.h\
    inc/dockindockmanager.h\
    inc/interface_plugin.h\
    inc/perspectiveactions.h\
    inc/perspectives.h\
    inc/plugin_manager.h\
    inc/save_layout.h\
    inc/pack_tool.h\
    inc/plugin_market.h\
    inc/downloadmanagerwidget.h\
    inc/downloadwidget.h
INCLUDEPATH+=\
    inc\
    ../common\inc\
    ../protocol\
    ../common_ui
FORMS += \
    desk.ui\
    mis_pack.ui \
    plugin.ui \
    show_demo.ui \
    ui_market.ui \
    downloadmanagerwidget.ui\
    downloadwidget.ui





CONFIG(debug,debug|release){
    win32:LIBS += ../lib/libprotobufd.lib -lws2_32
    unix:LIBS += ../lib/libprotobufd.a
    LIBS += -L$$PWD/../lib/debug/ -lcommond
    LIBS += -L$$PWD/../lib/debug/ -lcommon_uid
    LIBS += -L$$PWD/../lib/debug/ -lprotocold
    LIBS += -L$$PWD/../lib/ -lmosquittod
    LIBS += -L$$PWD/../lib/ -lqtadvanceddockingd
    TARGET = $$member(TARGET, 0)d
}
CONFIG(release,debug|release){

    win32:LIBS += ../lib/libprotobuf.lib -lws2_32
    unix:LIBS += ../lib/libprotobuf.a
    LIBS += -L$$PWD/../lib/debug/ -lcommon
    LIBS += -L$$PWD/../lib/debug/ -lcommon_ui
    LIBS += -L$$PWD/../lib/debug/ -lprotocol
    LIBS += -L$$PWD/../lib/ -lmosquitto
    LIBS += -L$$PWD/../lib/ -lqtadvanceddocking
}


